package com.cloudkinto.dao;

import com.cloudkinto.entity.StoragePositionDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.shelf.ShelfSortUpdateDto;
import com.cloudkinto.extentity.shelf.StoragePreviewDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhujiale`
 * @since 2022-12-21
 */
@Mapper
public interface StoragePositionDao extends BaseMapper<StoragePositionDo> {

    StoragePositionDo getRackByRackName(Long storageId, String shelfName, String rackName);

    List<ShelfSortUpdateDto> getSortPosList(Long id);

    List<StoragePreviewDto> getPositionByStorageId(Long storageId, Long positionId);
    
}
